<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <link rel="stylesheet" href="<s:url value="/resources"/>/css/innerstyle.css" type="text/css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/custom-theme/jquery-ui.custom.min.css" />	
	<script type="text/javascript" src="<s:url value="/resources"/>/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="<s:url value="/resources"/>/js/jquery-ui.custom.min.js"></script> 
	<script type="text/javascript" src="<s:url value="/resources"/>/js/i18n/jquery.ui.datepicker-zh-CN.js"></script>
	<script type="text/javascript" src="<s:url value="/resources"/>/js/jquery.form.js"></script>
	<script type="text/javascript" src="<s:url value="/resources"/>/js/json2.js"></script>
	<script type="text/javascript" src="<s:url value="/resources"/>/js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="<s:url value="/resources"/>/js/messages_zh.js"></script>
    <script  src="http://file.ctctc.cn/js/sea.js"  type="text/javascript"></script>
    
    <style type="text/css">
        td
        {
            height: 30px;
        }
        .pt1
        {
            font-size: 10pt;
            padding-left: 8px;
            padding-right: 8px;
        }
        .pt2
        {
            font-weight: normal;
            font-size: 18pt;
            font-family: "黑体";
        }
        .pt3
        {
            font-size: 12px;
            word-spacing: -5pt;
            padding-left: 5px;
            height: 22px;
            text-align: left;
            vertical-align: -30%;
        }
        label{ display:block; }
fieldset { padding:0; border:0; margin-top:25px; }
label.error {  
        color: red;/*错误信息的颜色*/  
    }  
input.error {  
        border:1px dotted red;/*输入错误的输入框的边框样式*/  
    }
    </style>
    <script type="text/javascript" language="javascript">
                 $(function(){  
        //                setYuef();
        //                setXuanzeRi();
        $("#btnSave").button();
        $("#btnSubmit").button();
        loadDate();
        
        

        tj();
        
        $( document ).tooltip({
      position: {
        my: "left top",
        at: "right top",
        using: function( position, feedback ) {
        $( this ).css( position );
          $( "<div>" )
            .addClass( "arrow" )
            .addClass( feedback.vertical )
            .addClass( feedback.horizontal )
            .appendTo( this );
        }
      }

       });
        
      //发站到站
        NBuilderAPIUrl = "http://file.ctctc.cn";
         NBuilderAuth_Token = "";//认证令牌
         seajs.use( NBuilderAPIUrl+'/js/jsmodule/ctrl/autocomplete', function () {
             $("#faz").nbuilderautocomplete({
                 source: NBuilderAutoCompleteSource,
                 objtype: "FAZ",
                 select: NBuilderAutoCompleteSelect,
                 response: NBuilderAutoCompleteResponse,
                 minLength: 0,
                 autoFocus: true
             }).on("click", function () {
                 $(this).nbuilderautocomplete("search", "");
             });
             $("#daoz").nbuilderautocomplete({
                 source: NBuilderAutoCompleteSource,
                 objtype: "DAOZ",
                 select: NBuilderAutoCompleteSelect,
                 response: NBuilderAutoCompleteResponse,
                 minLength: 0,
                 autoFocus: true
             }).on("click", function () {
                 $(this).nbuilderautocomplete("search", "");
             });

             
         });

                    });

        function loadDate(){
          var vdate = $("#nextDate").val();
          $("#nianf").val(vdate.substring(0,4));
          $("#yuef").val(vdate.substring(5,7));
          $("#ysjssj").val(vdate.substring(8,10));
          var cdate = $("#tbTiBShJ").val();
          $("#yskssj").val(cdate.substring(8,10));
        }

       

        function padLeft(str, pad, count) {

            while (str.length < count)
                str = pad + str;
            return str;
        }

        function s1() {

            var ss = 1 % 12;
            ss += 1;
            alert(ss);
            ss = 12 % 12;
            ss += 1;
            //var ss = document.getElementById("ddlTiBShJY").options[document.getElementById("ddlTiBShJY").selectedIndex].value
            alert(ss);
        }


        function openwindow(url, name, iWidth, iHeight) {
            var url; //转向网页的地址;
            var name; //网页名称，可为空;
            var iWidth; //弹出窗口的宽度;
            var iHeight; //弹出窗口的高度;
            var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置;
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
            //window(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=no,resizeable=no,location=no,status=no');
            var hetxx = showModalDialog(url, window, "dialogWidth:900px; dialogHeight:600px;status:no;help:yes");

            //alert(hetxx.hetbh);
            //alert(hetxx.hetid);
            if (hetxx != null) {
                $("#tbHeTH").val(hetxx.hetbh);
                $("#lblHeTRL").text(hetxx.ZONGL);//总量
                $("#lblHeTYBL").text(hetxx.YTBL);//已提报量
                $("#lblHeTWBL").text(hetxx.WTBL);//未提报量
                $("#faz").val(hetxx.fazmch);//发站名称
                $("#faz_value").val(hetxx.fazbm);//发站编码
                $("#tbFaZhLH").val(hetxx.fazlh);//发站略号
                $("#daoz").val(hetxx.daozmch);//到站名称
                $("#daoz_value").val(hetxx.daozbm);//到站编码
                $("#tbDaoZhLH").val(hetxx.daozlh);//到站略号
                $("#tbDaoJMCh").val(hetxx.daojmc);//到局
                $("#tbDaoJDH").val(hetxx.daojdh);//到局代号
                $("#tbZhuanYXMCh").val(hetxx.ZHUANYX);//专用线名称
                $("#ddlZhongDG").val(hetxx.ZHONGDG);//终到港
                $("#ddlHuanZhG").val(hetxx.HUANZHG);//换装港
                $("#tbBaoJ").val(hetxx.jiag);//报价
                $("#tbHuoWDSh").val(hetxx.shul);//货物吨数

                //收货单位
                $("#tbShouHDWMCh").val(hetxx.shouhdwmc);//收货单位名称
                $("#tbShouHDWShengBMCh").val(hetxx.shdwsbmc);//收获单位省部名称
                $("#tbShouHDWShengBDH").val(hetxx.shdwsb);//收货单位省部代号
                $("#tbShouHDWDH").val(hetxx.shouhdwbm);//收货单位代号
                //发货单位
                $("#tbFaHDWMCh").val(hetxx.fahdwmc);//发货单位名称
                $("#tbFaHDWDaiH").val(hetxx.fahdwbm);//发货单位代号
                $("#tbFaHDWShengBMCh").val(hetxx.fahdwsbmc);//发货单位省部名称
                $("#tbFaHDWShengBDH").val(hetxx.fahdwsb);//发货单位省部代号
                $("#tbFaHDWDZh").val(hetxx.DIZH);//发货单位地址
                $("#tbFaHDWDH").val(hetxx.DIANH);//发货单位电话                
               // settbRiqByYueDrop();

            }
        }


    function OpenHetSelect(nianf,yuef) {
            var leixVal = 'JHTB_YueBJHShB'; // == "JHTB_YueBJHShB"
            openwindow('findRcjhHtInfo?nianf='+nianf+'&yuef='+yuef, '', 500, 500);
        }
        
	function tj(){		
	/**  
     * 自定义验证规则——增加对select的验证  
     */  
    $.validator.addMethod(    
        "selectNone", 
        function(value, element)
        {   
            if (value == "-1") 
            {    
                return false;    
            }    
            else    
            {   
                return true;    
            }   
        },    
        "必须选择一项" 
    );   
	
	$("#form1").validate({
	       rules: {
	       "shouhdwmch":"required",	      
	       "fahdwmch":"required",
	       "chesh":"required",
	       "meizh":{
	       selectNone:true
	       }	       
	       },
		   messages: {
	       "fahdwmch":"请选择发货单位",	       
		   "shouhdwmch":"请选择收货单位",
		   "chesh":"请录入车数",
		   "meizh":"请选择品名名称"   
		   }
		   });
		   
		   $("#btnSave").click(function(){
		    if($("#form1").valid()){
		       var flag = true;
		       var msg = "";	        
		        if(document.getElementById("meizh").value=="-1"){
		           msg ="请选择品名";
		           flag =  false;
		        }
		        if(document.getElementById("shifzgsp").value==""){
			           msg ="请指定是否经归口审核";
			           flag =  false;
			        }
		        if(flag){
		        var url = "<s:url value="/"/>/jhtb/saveJhtb";
		        //alert(url);
		         $("#form1").ajaxSubmit({
		              url:url,
		              type:'post',
		              success:function(data){
		              var json =eval('(' + data + ')');
					    if(json.result==1){
					    alert("保存成功，请【提报】至中心进行审核！");
					    window.returnValue=1;
                        window.close();					   
					   }else{
					    alert("保存失败！");
					    //window.returnValue=1;
                        //window.close();
					   }
		              }
		         });	
		        }else{
		          alert(msg);
		        }
		        	       
		        
		        }
		       });
		       
		    $("#btnSubmit").click(function(){
		    if($("#form1").valid()){
		       var flag = true;
		       var msg = "";
		        if(document.getElementById("tbFaHDWMCh").value==""){
		           msg ="请选择发货单位";
		           flag =  false;
		        }
		        if(document.getElementById("tbShouHDWMCh").value==""){
		           msg ="请选择收货单位";
		           flag =  false;
		        }	
		        if(document.getElementById("shifzgsp").value==""){
			           msg ="请指定是否经归口审核";
			           flag =  false;
			        }
		        if(flag){
		        var url = "<s:url value="/"/>/jhtb/saveAndSubmitJhtb";
		         $("#form1").ajaxSubmit({
		              url:url,
		              type:'post',
		              success:function(data){
		              var json =eval('(' + data + ')');
					    if(json.result==1){
					    alert("提报成功！");
					    window.returnValue=1;
                        window.close();					   
					   }else{
					    alert("保存失败！");
					    //window.returnValue=1;
                        //window.close();
					   }
		              }
		         });	
		        }else{
		          alert(msg);
		        }
		        	       
		        
		        }
		       });
	     
	}

function changeTabForPinm(){
    //alert($("#meizh").find("option:selected").val());
    $( "#meizhdm").val( $("#mz").find("option:selected").val());
    $("#meizh").val($("#mz").find("option:selected").text());
    }
 
 function changeTabForHzg(){
    $( "#huanzhg").val( $("#huanzhgbh").find("option:selected").text());
    }
    
    function changeTabForZdg(){
    $( "#zhongdg").val( $("#zhongdgbh").find("option:selected").text());
    }  
    </script>
  </head>
  
<body>
    <form name="form1" method="post" id="form1">
 <div id="tab">
        <table width="100%" height="680px" align="center" id="tblbusy">
            <tr>
                <td valign="top" align="center" height="928" style="text-align: center">
                    <table width="98%" id="Table2">
                        <tr style="height: 30px" align="left">
                            <td style="font-size: 12pt; font-weight: bold">
                                选择合同
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 30px" colspan='4' align="left">
                                  <span id="spanHTH" style="color: Red; font-size: 20px">*</span>合同号：
                                <input type="text" name="hetddh" id="tbHeTH" onclick="OpenHetSelect($('#nianf').val(),$('#yuef').val());" ReadOnly="true" style="width:122px;" />
                                <!--&nbsp; &nbsp; 合同总量：<span id="lblHeTRL">0</span> &nbsp; 已提报量：<span id="lblHeTYBL">0</span>&nbsp; 未提报量：<span id="lblHeTWBL">0</span>
                                 -->
                                
                                <input type="hidden" id="nextDate" value="${currentLastDate}"/>
                                <input type="hidden" name="dingdlx" id="dingdlx" value="2"/>
                                <input type="hidden" name="fazhbh" id="faz_value" />
                                <input type="hidden" name="daozhbh" id="daoz_value" />
                            </td>
                             <td style="font-size: 12pt; font-weight: bold"  align="left">
                            是否经归口审核：
        <select name="shifzgsp" id="shifzgsp">
			<option selected="selected" value="">请选择</option>
			<option value="1">经归口审核</option>
			<option value="0">不经归口审核</option>
		</select>
                            </td>
                        </tr>
                    </table>
                    <div id="UpdatePanel1">
                            <table class="pt1" width="98%" style="border: 1px; border-color: Black; border-style: solid;">
                                <tr align="right">
                                    <td style="height: 50px">
                                        <table width="99%" style="height: 30px; text-align: left;">
                                            <tr>
                                                <td>
                                                    <font size="3" style="color: Red">提示：输入发货单位、收货单位、发站、到站、省部名称的拼音首字母或汉字可快速检索</font>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" class="pt2">
                                                    <p>
                                                        <span style="text-align: center; font-size: 16pt; font-weight: bold">铁 路 货 物 运 输 服 务
                                                            订 单</span></p>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr align="left">
                                    <td>
                                        <table style="border-collapse: collapse" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td colspan="2" style="height: 30px">
                                                </td>
                                                <td id="Td1" colspan="4" style="height: 30px">
                                                </td>
	
                                                <td style="width: 90px">
                                                </td>
                                                <td style="width: 140px; border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; text-align: center;
                                                    height: 30px;">月份
                                                </td>
                                                <td id="ht_strQiQ" colspan="3">
                                                   <input type="text" style="width: 70px; " name="nianf" id="nianf"  >
                                                   &nbsp;
                                                   <input type="text" style="width: 70px; " name="yuef" id="yuef"  >                                                    
                                                </td>	
                                                <td style="width: 59px">
                                                </td>
                                                <td style="width: 32px">
                                                </td>
                                                <td style="width: 51px">
                                                </td>
                                                <td style="width: 67px; border-bottom: black 1px solid;">
                                                </td>
                                                <td style="width: 61px; border-bottom: black 1px solid;">
                                                </td>
                                                <td style="width: 61px; border-bottom: black 1px solid;">
                                                </td>
                                                <td style="width: 61px; border-bottom: black 1px solid;">
                                                </td>
                                                <td style="width: 61px; border-bottom: black 1px solid;">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 30px">
                                                    <span style="color: Red; font-size: 20px"></span>提报时间：
                                                </td>
                                                <td id="ht_strTiBRQ" colspan="4" style="height: 30px">
                                                    <input name="tibshj" type="text" value="${currentDate}" id="tbTiBShJ" style="width:237px;background-color:#ddd;" readOnly="true"/>
                                                </td>
	
                                                <td style="width: 90px; text-align: center; border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; height: 30px;">
                                                    发站
                                                </td>
                                                <td style="width: 140px; border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; text-align: center;
                                                    height: 30px;">
                                                    <span style="color: Red; font-size: 20px">*</span>名称
                                                </td>
                                                <td id="ht_strFaHDWFZMC" colspan="6" style="border-top: black 1px solid; border-left: black 1px solid;
                                                    width: 90px; border-bottom: black 1px solid; height: 30px;">
                                                    <input name="fazhmch" type="text" id="faz" tabindex="1"  style="width:333px;" />
                                                </td>
	
                                                <td style="width: 67px; height: 30px;">
                                                    略号
                                                </td>
                                                <td id="ht_strFaHDWFZLH" colspan="4" style="border-bottom: black 1px solid; border-right: black 1px solid;
                                                    height: 30px;">
                                                    <input name="fazhlh" type="text" id="tbFaZhLH" style="width:255px;" />
                                                </td>
	
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 30px">要求运输时间：
                                                </td>
                                                <td colspan="4" style="height: 30px">
                                                  <input type="text" name="yaoqyshshj" id="yskssj" style="width: 30px; "  >                                                    
                                                    ——
                                                  <input type="text" name="yaoqyshjshshj" id="ysjssj" style="width: 30px; "  >                                                    
                                                </td>
                                                <td rowspan="3" style="width: 90px; text-align: center; border-right: black 1px solid;
                                                    border-top: black 1px solid; border-left: black 1px solid; border-bottom: black 1px solid;">
                                                    发货单位签章
                                                </td>
                                                <td style="width: 140px; text-align: center; border-top-width: 1px; border-left-width: 1px;
                                                    border-left-color: black; border-bottom-width: 1px; border-bottom-color: black;
                                                    border-top-color: black; border-right-width: 1px; border-right-color: black;
                                                    height: 30px;">
                                                    <span style="font-size: 20px; color: red">*</span>省/部名称
                                                </td>
                                                <td id="ht_strFaHDWSBMC" colspan="6" style="border-bottom: black 1px solid; height: 30px;">
                                                    <input name="fahdwshb" type="text" id="tbFaHDWShengBMCh" style="width:333px;" />
                                                </td>
	
                                                <td style="width: 67px; height: 30px;">
                                                    代号
                                                </td>
                                                <td id="ht_strFaHDWSBDH" colspan="4" style="border-bottom: black 1px solid; border-right: black 1px solid;
                                                    height: 30px;">
                                                    <input name="fahdwshbdh" type="text" id="tbFaHDWShengBDH" style="width:255px;" />
                                                </td>
	
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 30px">
                                                    合同/订单号：
                                                </td>
                                                <td id="ht_strHeTDDH" colspan="4" style="height: 30px">
                                                    <input name="tbDingDH" type="text" value="系统自动编号" readonly="readonly" id="tbDingDH" disabled="disabled" style="width:237px;background-color:#ddd;"/>
                                                </td>
	
                                                <td style="text-align: center; height: 30px;">
                                                    <span style="color: Red; font-size: 20px">*</span>发货单位名称
                                                </td>
                                                <td id="ht_strFaHDWMCH" colspan="6" style="border-bottom: black 1px solid; height: 30px;">
                                                    <input name="fahdwmch" type="text" id="tbFaHDWMCh" tabindex="2" ReadOnly="true" style="width:333px;" />
                                                </td>
	
                                                <td style="width: 67px; height: 30px;">
                                                    代号
                                                </td>
                                                <td id="ht_strFaHDWMCDH" colspan="4" style="border-bottom: black 1px solid; border-right: black 1px solid;
                                                    height: 30px;">
                                                    <input name="fahdwdh" type="text" id="tbFaHDWDaiH" style="width:255px;" />
                                                </td>
	
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="border-bottom: black 1px solid; height: 30px;">
                                                    受理代码：
                                                </td>
                                                <td id="ht_strShouLDH" colspan="4" style="border-bottom: black 1px solid; height: 30px;">
                                                    <input name="shoulhm" type="text" id="tbShouLHM" style="width:238px;" />
                                                </td>
	
                                                <td style="text-align: center; border-bottom: black 1px solid; height: 30px;">
                                                    地址
                                                </td>
                                                <td id="ht_strFaHDWDZ" colspan="6" style="border-bottom: black 1px solid; height: 30px;">
                                                    <input name="fahdwdizh" type="text" id="tbFaHDWDZh" style="width:333px;" />
                                                </td>
	
                                                <td style="width: 67px; height: 30px;">
                                                    电话
                                                </td>
                                                <td id="ht_strFaHDWDH" colspan="4" style="border-right: black 1px solid; height: 30px;">
                                                    <input name="fahdwdianh" type="text" id="tbFaHDWDH" style="width:255px;" />
                                                </td>
	
                                            </tr>
                                            <tr>
                                                <td rowspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; text-align: center;">
                                                    顺号
                                                </td>
                                                <td colspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid;">
                                                    到局：<input name="daojmch" type="text" id="tbDaoJMCh" style="width:45px;" />
                                                    <span id="ht_strDaoJ"></span>代号：<input name="daojdh" type="text" id="tbDaoJDH" style="width:45px;" /><span id="ht_strDaoJDH"></span>
                                                </td>
                                                <td colspan="5" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; text-align: center;">
                                                    收货单位
                                                </td>
                                                <td colspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; text-align: center;">
                                                    货物
                                                </td>
                                                <td rowspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 32px;">
                                                    车种代号
                                                </td>
                                                <td rowspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 51px; text-align: center;">
                                                    <span style="font-size: 20px; color: red">*</span>车数
                                                </td>
                                                <td rowspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 67px;">
                                                    特征代号
                                                </td>
                                                <td rowspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 61px; text-align: center;">
                                                    换装港
                                                </td>
                                                <td rowspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 63px; text-align: center;">
                                                    终到港
                                                </td>
                                                <td rowspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 66px; text-align: center;">
                                                    报价(元/吨)(元/车)
                                                </td>
                                                <td rowspan="3" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 60px; text-align: center;">
                                                    备注
                                                </td>
                                            </tr>
                                            <tr>
                                                <td rowspan="2" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 93px; text-align: center;">
                                                    <span style="font-size: 20px; color: red">*</span>到站
                                                </td>
                                                <td rowspan="2" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 58px; text-align: center;">
                                                    到站电报略号
                                                </td>
                                                <td rowspan="2" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; text-align: center;">
                                                    专用线名称
                                                </td>
                                                <td colspan="2" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; text-align: center;
                                                    height: 30px;">
                                                    省/部
                                                </td>
                                                <td colspan="2" rowspan="2" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; text-align: center;">
                                                    <span style="font-size: 20px; color: red">*</span>名称
                                                </td>
                                                <td rowspan="2" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; width: 49px; text-align: center;">
                                                    代号
                                                </td>
                                                <td colspan="2" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; text-align: center;
                                                    height: 30px;">
                                                    <span style="font-size: 20px; color: red">*</span>品名
                                                </td>
                                                <td style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 59px; height: 30px;">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; text-align: center; height: 30px;">
                                                    名称
                                                </td>
                                                <td style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; text-align: center; height: 30px;">
                                                    代号
                                                </td>
                                                <td style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 50px; text-align: center; height: 30px;">
                                                    名称
                                                </td>
                                                <td style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 66px; text-align: center; height: 30px;">
                                                    代号
                                                </td>
                                                <td style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 59px; text-align: center; height: 30px;">
                                                    吨数
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; text-align: center; height: 30px;">
                                                    1
                                                </td>
                                                <td id="ht_strDaoZ" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 93px; height: 30px;">
                                                    <input name="daozh" type="text" id="daoz" tabindex="3"  style="width:65px;" />
                                                </td>
	
                                                <td id="ht_strDaoZDBLH" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 58px; height: 30px;">
                                                    <input name="daozhdblh" type="text" id="tbDaoZhLH"  style="width:45px;" />
                                                </td>
	
                                                <td id="ht_strZhuangYXMC" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; height: 30px;">
                                                    <input name="zhuanyxmch" type="text" id="tbZhuanYXMCh" tabindex="10" style="width:59px;" />
                                                </td>
	
                                                <td id="ht_strShouHDWSBMC" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; height: 30px;">
                                                    <input name="shouhdwshb" type="text" id="tbShouHDWShengBMCh" style="width:59px;" />
                                                </td>
	
                                                <td id="ht_strShouHDWSBDH" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; height: 30px;">
                                                    <input name="shouhdwshbdh" type="text" id="tbShouHDWShengBDH" style="width:59px;" />
                                                </td>
	
                                                <td id="ht_strShouHDWMC" colspan="2" style="border-right: black 1px solid; border-top: black 1px solid;
                                                    border-left: black 1px solid; border-bottom: black 1px solid; height: 30px;">
                                                    <input name="shouhdwmch" type="text" id="tbShouHDWMCh" tabindex="4" ReadOnly="true" style="width:220px;" />
                                                </td>
	
                                                <td id="ht_strShouHDWMCDH" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 49px; height: 30px;">
                                                    <input name="shouhdwdh" type="text" id="tbShouHDWDH" style="width:59px;" />
                                                </td>
	
                                                <td id="ht_strHuoWMC" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 50px; height: 30px;">
                                                  
	   <select id="mz" onchange="changeTabForPinm()">
            	<option value="-1" selected>==请选择==</option>
                   <c:forEach var="pm" items="${pinm}">
                   <option value="${pm.diccode}">
                   ${pm.dicname}
                   </option>
                   </c:forEach>
       </select>
       <input type="hidden" id="meizh" name="meizh">
                                                </td>
	
                                                <td id="ht_strHuoWDH" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 66px; height: 30px;">
                                                    <input name="meizhdm" type="text" id="meizhdm" ReadOnly="true" style="width:59px;" />
                                                </td>
	
                                                <td id="ht_strDunS" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 59px; height: 30px;">
                                                    <input name="huowdsh" type="text" id="tbHuoWDSh" style="width:47px;" />
                                                </td>
	
                                                <td id="ht_strCheZDH" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 32px; height: 30px;">
                                                    <input name="chezhdh" type="text" value="C" id="tbCheZhDH" tabindex="6" style="width:22px;" />
                                                </td>
	
                                                <td id="ht_strCheS" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 51px; height: 30px;">
                                                    <input name="chesh" type="text" id="tbCheSh" tabindex="7" style="width:40px;" />
                                                </td>
	
                                                <td id="ht_strTeZDH" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 67px; height: 30px;">
                                                    <input name="tezhdh" type="text" id="tbTeZhDH" tabindex="8" style="width:55px;" />
                                                </td>
	
                                                <td id="ht_strHuanZG" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 61px; height: 30px;">
                 <select name="huanzhgbh" id="huanzhgbh" onchange="changeTabForHzg()">
            	<option value="-1" selected>==请选择==</option>
                   <c:forEach var="hzg" items="${huanzg}">
                   <option value="${hzg.huanzgid}">
                   ${hzg.mingch}
                   </option>
                   </c:forEach>
                  </select>
                  <input type="hidden" id="huanzhg" name="huanzhg">
                                                </td>
	
                                                <td id="ht_strZongDG" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 63px; height: 30px;">
                <select name="zhongdgbh" id="zhongdgbh" onchange="changeTabForZdg()">
            	<option value="-1" selected>==请选择==</option>
                   <c:forEach var="zdg" items="${zhongdg}">
                   <option value="${zdg.zhongdid}">
                   ${zdg.mingch}
                   </option>
                   </c:forEach>
                  </select>
                  <input type="hidden" id="zhongdg" name="zhongdg">
                                                </td>
	
                                                <td id="ht_strBaoJ" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 66px; text-align: left; height: 30px;">
                                                    <input name="baoj" type="text" id="tbBaoJ" tabindex="12" style="width:55px;" />
                                                </td>
	
                                                <td id="ht_strBeiZH" style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                                    border-bottom: black 1px solid; width: 60px; height: 30px;">
                                                    <input name="beizh" type="text" id="tbBeiZh" style="width:49px;" />
                                                </td>
	
                                            </tr>
                                        </table>
                                        <table style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
                                            border-bottom: black 1px solid; border-collapse: collapse" border="0" cellpadding="0"
                                            cellspacing="0" id="TABLE1">
                                            <tr>
                                                <td colspan="2" style="border-right: black 1px solid; border-left: black 1px solid;
                                                    height: 30px;">
                                                    供托运人自愿选择的服务项目（由托运人填写，需要的项目打）
                                                </td>
                                                <td style="width: 465px; border-right: black 1px solid; height: 30px;">
                                                    说明或要求其它事项
                                                </td>
                                                <td style="width: 488px; border-right: black 1px solid; height: 30px;">
                                                    承运人签章
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 650px; height: 30px;">
                                                    1、发送综合服务
                                                </td>
                                                <td style="width: 493px; border-right: black 1px solid; height: 30px;">
                                                    5、清运、消除垃圾
                                                </td>
                                                <td style="width: 465px; border-right: black 1px solid; height: 30px;">
                                                </td>
                                                <td style="width: 488px; border-right: black 1px solid; height: 30px;">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 650px; height: 30px;">
                                                    2、
                                                </td>
                                                <td style="width: 493px; border-right: black 1px solid; height: 30px;">
                                                    6、代购、代加工装卸加固材料
                                                </td>
                                                <td style="width: 465px; border-right: black 1px solid; height: 30px;">
                                                </td>
                                                <td style="width: 488px; border-right: black 1px solid; height: 30px;">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 650px; height: 30px;">
                                                    3、仓储保管
                                                </td>
                                                <td style="width: 493px; border-right: black 1px solid; height: 30px;">
                                                    7、代对货物进行包装
                                                </td>
                                                <td style="width: 465px; border-right: black 1px solid; height: 30px;">
                                                </td>
                                                <td style="width: 488px; border-right: black 1px solid; height: 30px;">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 650px; height: 30px;">
                                                    4、篷布服务
                                                </td>
                                                <td style="width: 493px; border-right: black 1px solid; height: 30px;">
                                                    8、代办一关三检手续
                                                </td>
                                                <td style="width: 465px; border-right: black 1px solid; height: 30px;">
                                                    保价运输
                                                </td>
                                                <td style="width: 488px; border-right: black 1px solid; height: 30px;">
                                                    年月日
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
</div>
                    <table width="98%">
                        <tr>
                            <td align="center" colspan="1" style="width: 42px; text-align: left">
                                <span style="font-size: 10pt; font-family: 宋体">说明：</span>
                            </td>
                            <td class="pt2" align="center" colspan="2" style="text-align: left">
                                <span style="font-size: 10pt; font-family: 宋体">1、涉及承运人与托运人、收货人的责任和权利，按铁路货物运输规程办理。</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="1" style="width: 42px; text-align: left">
                            </td>
                            <td class="pt2" align="center" colspan="2" style="text-align: left">
                                <span style="font-size: 10pt; font-family: 宋体">2、实施货物运输，托运人还应递交货物运单，承运人应按报价核收费用，应先列出费目，金额按实际发生核收。</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="1" style="width: 42px; text-align: left">
                            </td>
                            <td class="pt2" align="center" colspan="2" style="text-align: left">
                                <span style="font-size: 10pt; font-family: 宋体">3、用户发现有有超出国家计委、铁道部、省级部门公告的铁路货运价格及收费项目、标准收费的行为和强制服务、强行收费的行为，有权举报。</span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table width="98%" style="font-size: 12pt; font-family: Times New Roman">
            <tr>
                <td align="center" colspan="8" id="tdButton">
                    <input type="button" name="btnSave" value="保存" id="btnSave" style="width:80px;" />
                    &nbsp; &nbsp;&nbsp; &nbsp;<input type="button" name="btnSubmit" value="保存并提报" id="btnSubmit" style="width:120px;" />
                    
                </td>
            </tr>
        </table>
    </div>
</form>

</body>
</html>

